﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 工业设备监控系统.Interface
{
    public interface IModbusConnection : IDisposable
    {
        bool Connect();

        void Disconnect();

        bool IsConnected { get; }

        int[] ReadHoldingRegisters(int startAddress, int count);

        void WriteSingleRegister(int address, int value);
    }
}